<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3 Animation 背景渐变</title>
</head>
<link rel="stylesheet" type="text/css" href="./style/normalize.css">
<style>
    html,body{
        height: 100%;
        width: 100%;
        background-image: linear-gradient(45deg,#ff6348,#ffa502,#ff4757,#ff7f50,#eccc68);
        /* 背景扩大4倍 */
        background-size: 400%;
        animation: move 4s infinite alternate;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    @keyframes  move{
        0%{
            background-position: 0 50%;
        }

        50%{
            background-position: 100% 50%;
        }

        100%{
            background-position:  50% 0%;
        }
    }
    .text{
        color: white;
        font-size: 24px;
    }
</style>
<body>
    <div class="text">
        Linear-gradient Animation
    </div>
</body>
</html>